The Trim function removes extra blank spaces on both the right and left side of a string.
Note that HTML automatically removes extra blank spaces in this view.
Code: <% =Trim(" A sentence with extra spaces on both sides. ") %>
Output: A sentence with extra spaces on both sides.